package test.remote.hessian.function_1.impl;

import org.oproject.rmi.hessian.core.service.ServiceInfo;
import org.oproject.rmi.hessian.core.service.ServiceManager;
import org.oproject.rmi.hessian.core.service.ServiceType;

import test.remote.hessian.function_1.Function1;

public class Function1Impl implements Function1
{
	public Function1Impl()
	{
		System.out.println("初始化bean...");
	}
	private void init()
	{
//		ServiceInfo serviceInfo = new ServiceInfo();
//		serviceInfo.setName("helloService");
//		serviceInfo.setServiceType(ServiceType.SPRING);
//		serviceInfo.setMethodName("sayHello");
//		
//		ServiceManager.regiestService("helloService", serviceInfo);
	}
	
	public void sayHello()
	{
		System.out.println("ServiceInfo say Hello...");
	}

}
